package com.hean.activity;
/**
 * 手机照相机只能被一个activtiy操作，多个activity是不能同时操作一个照相机
activity A、B都操作照相机
A　中一个按钮跳到B，在onstop方法中释放照相机，B操作照相机，点按钮返回A，在onPause方法中释放照相机，A在onResume方法中再获取照相机
 */
import android.app.Activity;
import android.os.Bundle;

public class LifeActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}

}
